
#include "Graphics/GraphicsBase.h"
#include "GameLoop.h"
#include "Settings.h"
#include "Utils/Timer.h"

#include "Game.h"

#include <SDL/SDL.h>
#include <iostream>
#include <cstdlib>
#include <ctime>

int main(int argc, char **argv){
    //srand(time(NULL));

    if (!Settings::instance().load("data/settings.cfg")) {
        std::cerr << "Could not load settings file properly" << std::endl;
        return 1;
    }
    GraphicsBase::initialise();
    Timer::initialise();

    Game::instance().initialise();
    Game::instance().execute();
//    GameLoop::initialise();
//    GameLoop::execute();

    return 0;
}

